package com.example.dispatcher.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class TestController {

    @GetMapping(value = "/test")
    public String testList(@RequestParam List<Integer> ids) {
        System.out.println(ids);
        return "ok";
    }

    @GetMapping(value = "/test2")
    public String test2List(@RequestParam Integer id) {
        System.out.println(id);
        return "ok";
    }
}
